<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php echo hook('syncMeta');?>
<?php $oneplus_seo_meta = get_seo_meta($vars,$seo); ?>
<?php if($oneplus_seo_meta['title']): ?><title><?php echo ($oneplus_seo_meta['title']); ?>-<?php echo modC('WEB_SITE_NAME',L('_OPEN_SNS_'),'Config');?></title>
<?php else: ?>
<title><?php echo modC('WEB_SITE_NAME',L('_OPEN_SNS_'),'Config');?></title><?php endif; ?>
<?php if($oneplus_seo_meta['keywords']): ?><meta name="keywords" content="<?php echo ($oneplus_seo_meta['keywords']); ?>"/><?php endif; ?>
<?php if($oneplus_seo_meta['description']): ?><meta name="description" content="<?php echo ($oneplus_seo_meta['description']); ?>"/><?php endif; ?>
<link href="/Public/zui/css/zui.css" rel="stylesheet">
<link href="/Public/zui/css/zui-theme.css" rel="stylesheet">
<link href="/Theme/Want/Public/css/iconfont.css" rel="stylesheet"/>
<link href="/Theme/Want/Public/css/core.css" rel="stylesheet"/>
<link href="/Theme/Want/Public/css/want.css" rel="stylesheet"/>
<link type="text/css" rel="stylesheet" href="/Public/js/ext/magnific/magnific-popup.css"/>
<script src="/Public/js.php?f=js/jquery-2.0.3.min.js,js/com/com.functions.js,js/core.js,js/com/com.toast.class.js,js/com/com.ucard.js"></script>

    <style type="text/css">
    	.upload-pre-item img {
		  min-width: 250px;
		  max-width: 250px;
		  max-height: 300px;
		  border-radius: 15px;
		  padding: 2px;
		}
		.uploadcover {
		  color: #666;
		  background-color: #fff;
		  border-color: #4f8ad0;
		  display: inline-block;
		  margin-bottom: 0;
		  font-weight: normal;
		  text-align: center;
		  vertical-align: middle;
		  cursor: pointer;
		  background-image: none;
		  border: 1px solid rgba(0, 0, 0, 0);
		  white-space: nowrap;
		  font-size: 12px;
		  -webkit-user-select: none;
		  -moz-user-select: none;
		  -ms-user-select: none;
		  position: absolute;
		}
    </style>

<!--合并前的js-->
<?php $config = api('Config/lists'); C($config); $count_code=C('COUNT_CODE'); ?>
<script type="text/javascript">
    var ThinkPHP = window.Think = {
        "ROOT": "", //当前网站地址
        "APP": "/index.php?s=", //当前项目地址
        "PUBLIC": "/Public", //项目公共目录地址
        "DEEP": "<?php echo C('URL_PATHINFO_DEPR');?>", //PATHINFO分割符
        "MODEL": ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
        "VAR": ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"],
        'URL_MODEL': "<?php echo C('URL_MODEL');?>",
        'WEIBO_ID': "<?php echo C('SHARE_WEIBO_ID');?>"
    }
    var cookie_config={
        "prefix":"<?php echo C('COOKIE_PREFIX');?>"
    }
    var Config={
        'GET_INFORMATION':<?php echo modC('GET_INFORMATION',1,'Config');?>,
        'GET_INFORMATION_INTERNAL':<?php echo modC('GET_INFORMATION_INTERNAL',10,'Config');?>*1000
    }
    var weibo_comment_order = "<?php echo modC('COMMENT_ORDER',0,'WEIBO');?>";
</script>

<script>
    //全局内容的定义
    var _ROOT_ = "";
    var MID = "<?php echo is_login();?>";
    var MODULE_NAME="<?php echo MODULE_NAME; ?>";
    var ACTION_NAME="<?php echo ACTION_NAME; ?>";
    var CONTROLLER_NAME ="<?php echo CONTROLLER_NAME; ?>";
    var initNum = "<?php echo modC('WEIBO_NUM',140,'WEIBO');?>";
    function adjust_navbar(){
        $('#sub_nav').css('top',$('#nav_bar').height());
        $('#main-container').css('padding-top',$('#nav_bar').height()+$('#sub_nav').height()+20)
    }
</script>

<audio id="music" src="" autoplay="autoplay"></audio>
<?php echo hook('pageHeader');?>
</head>
<body>
	<!-- 头部 -->
	<script src="/Public/js/com/com.talker.class.js"></script>
<?php if((is_login()) ): ?><div id="talker">
    </div><?php endif; ?>

<?php D('Common/Member')->need_login(); ?>
<!--[if lt IE 8]>
<div class="alert alert-danger" style="margin-bottom: 0"><?php echo L('_TIP_BROWSER_DEPRECATED_1_');?> <strong><?php echo L('_TIP_BROWSER_DEPRECATED_2_');?></strong><?php echo L('_TIP_BROWSER_DEPRECATED_3_');?> <a target="_blank" href="http://browsehappy.com/"><?php echo L('_TIP_BROWSER_DEPRECATED_4_');?></a><?php echo L('_TIP_BROWSER_DEPRECATED_5_');?></div>
<![endif]-->
<?php $unreadMessage=D('Common/Message')->getHaventReadMeassageAndToasted(is_login()); ?>

<div id="nav_bar" class="nav_bar">
    <div class="container">
        <nav class="" id="nav_bar_container">
            <?php $logo = get_cover(modC('LOGO',0,'Config'),'path'); $logo = $logo?$logo:'/Public/images/logo.png'; ?>
            <a class="navbar-brand logo" href="<?php echo U('Home/Index/index');?>"><img src="<?php echo ($logo); ?>"/></a>
            <div class="" id="nav_bar_main">
                <ul class="nav navbar-nav navbar-left">
                    <?php $__NAV__ = D('Channel')->lists(true);$__NAV__ = list_to_tree($__NAV__, "id", "pid", "_"); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i; if(($nav['_']) != ""): ?><li class="dropdown">
                                <a title="<?php echo ($nav["title"]); ?>" class="dropdown-toggle nav_item" data-toggle="dropdown"
                                   href="#"> <?php echo ($nav["title"]); ?> <i class="icon-angle-down"></i>
                                </a>
                                <ul class="dropdown-menu">
                                    <?php if(is_array($nav["_"])): $i = 0; $__LIST__ = $nav["_"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$subnav): $mod = ($i % 2 );++$i;?><li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo (get_nav_url($subnav["url"])); ?>" target="<?php if(($subnav["target"]) == "1"): ?>_blank<?php else: ?>_self<?php endif; ?>"><?php echo ($subnav["title"]); ?></a>
                                        </li>
                                        <?php if(($key) == "0"): ?><li class="divider"></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                </ul>
                            </li>
                            <?php else: ?>
                            <li class="<?php if((get_nav_active($nav["url"])) == "1"): ?>active<?php else: endif; ?>">
                                <a title="<?php echo ($nav["title"]); ?>" href="<?php echo (get_nav_url($nav["url"])); ?>"
                                   target="<?php if(($nav["target"]) == "1"): ?>_blank<?php else: ?>_self<?php endif; ?>">
                                    <?php echo ($nav["title"]); ?>
                                    <span class="label label-badge rank-label" title="<?php echo ($nav["band_text"]); ?>"
                                          style="background: <?php echo ($nav["band_color"]); ?> !important;color:white !important;"><?php echo ($nav["band_text"]); ?></span>
                                </a>
                            </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                </ul>
                <form class="navbar-form navbar-search navbar-right" role="search">
		            <div class="form-group pull-left">
		              <input type="text" class="form-control" placeholder="搜索话题、树丛或人">
		            </div>
		            <button type="submit" class="btn btn-default pull-left"><i class="iconfont">&#xe622;</i></button>
		        </form>
            </div>
            <!--导航栏菜单项-->
        </nav>
    </div>
</div>
<?php echo hook('setSkin');?>
<div id="tool" class="tool ">
    <?php echo hook('tool');?>
    <?php if(check_auth('Core/Admin/View')): ?><!--  <a href="javascript:;" class="admin-view"></a>--><?php endif; ?>
    <div class="sidebar hidden-xs">
		<ul class="ul1 ">
			<?php if(is_login()): ?><li>
				<a href="<?php echo U('Ucenter/index/index');?>">
					<?php $common_header_user = query_user(array('avatar32')); ?>
					<img class="avatar" src="<?php echo ($common_header_user["avatar32"]); ?>"/>
					<h4>我的树屋</h4>
				</a>
		  	</li>
			<?php else: ?>
			<?php $open_quick_login=modC('OPEN_QUICK_LOGIN', 0, 'USERCONFIG'); $register_type=modC('REGISTER_TYPE','normal','Invite'); $register_type=explode(',',$register_type); $only_open_register=0; if(in_array('invite',$register_type)&&!in_array('normal',$register_type)){ $only_open_register=1; } ?>
            <script>
                var OPEN_QUICK_LOGIN = "<?php echo ($open_quick_login); ?>";
                var ONLY_OPEN_REGISTER = "<?php echo ($only_open_register); ?>";
            </script>
			<li>
				<a data-login="do_login">
					<i class="iconfont">&#xe610;</i>
					<h4>请先登陆</h4>
				</a>
		  	</li><?php endif; ?>
			<li>
				<a href="<?php echo U('Ucenter/Config/index');?>">
					<i class="iconfont">&#xe627;</i>
					<h4>修改资料</h4>
				</a>
		  	</li>
		  	<li>
				<a href="<?php echo U('Ucenter/Index/fans');?>">
					<i class="iconfont">&#xe62e;</i>
					<h4>我的粉丝</h4>
				</a>
		  	</li>
			<li>
				<a href="<?php echo U('Ucenter/Collection/index');?>">
					<i class="iconfont">&#xe619;</i>
					<h4>收藏分享</h4>
				</a>
		  	</li>
		  	<li>
				<a href="<?php echo U('Ucenter/Message/message');?>">
					<i class="iconfont">&#xe633;</i>
					<h4>站内消息</h4>
					<?php if(count($unreadMessage) != 0): ?><span class="badge badge-important" ><?php echo count($unreadMessage);?></span><?php endif; ?>
				</a>
		  	</li>
		  	<?php if(is_login()): if(check_auth('Admin/Index/index')): ?><li>
				<a href="<?php echo U('Admin/Index/index');?>">
					<i class="iconfont">&#xe61e;</i>
					<h4>后台管理</h4>
				</a>
		  	</li><?php endif; ?>
		  	<li>
				<a event-node="logout">
					<i class="iconfont">&#xe623;</i>
					<h4>退出</h4>
				</a>
		  	</li><?php endif; ?>
		</ul>
		
		<ul class="ul2">
			<li>
				<a href="javascript:;">
					<i class="iconfont font28 qr">&#xe640;</i>
					<h4>二维码</h4>
				</a>
				<?php $qrcode = get_cover(modC('QRCODE',0,'Config'),'path'); $qrcode = $qrcode?$qrcode:'/Theme/Want/Public/images/qrcode.png'; ?>
				<div class="showqr">
					<img src="<?php echo ($qrcode); ?>" />
				</div>
		  	</li>
			<li>
				<a id="go-top" href="javascript:;" class="go-top">
					<i class="iconfont">&#xe63d;</i>
					<h4>返回顶部</h4>
				</a>
		  	</li>
		</ul>
	</div>
</div>
<?php if(is_login()&&(get_login_role_audit()==2||get_login_role_audit()==0)){ ?>
<div id="top-role-tip" class="alert alert-danger" style="margin:0;text-align: center;">
    <?php echo L('_TIP_ROLE_NOT_AUDITED1_');?> <strong><?php echo L('_TIP_ROLE_NOT_AUDITED2_');?></strong><?php echo L('_TIP_ROLE_NOT_AUDITED3_');?>
    <a target="_blank" href="<?php echo U('ucenter/config/role');?>"><?php echo L('_TIP_ROLE_NOT_AUDITED4_');?></a>
</div>

<?php } ?>
<?php echo hook('afterTop');?>



	<!-- /头部 -->
	
	<!-- 主体 -->
	<div class="main-wrapper">
    
    <div id="main-container" class="container">
        <div class="row">
            
<div class="aw-publish">
    <div class="aw-publish-header">
		<h1 style="padding:40px;">
			<?php if($isEdit): ?>修改话题<?php else: ?>新建话题<?php endif; ?>
		</h1>
	</div>
	<div class="aw-publish-body clearfix">
		<form action="<?php echo U('Group/Index/doEdit');?>" method="post" class="ajax-form" id="edit-article-form" >
        <input type="hidden" name="post_id" value="<?php echo ($post["id"]); ?>"/>
		<input type="hidden" id="isEdit" value="<?php echo ($isEdit); ?>">
		<input type="hidden" id="category" name="category" value="<?php echo ($post['cate_id']); ?>">

		<div class="col-md-6" style="padding: 0 30px 0px 100px;">
			<span class="topic-tag " onclick="$('#category').val('1');$('.topic-type').removeClass('active');$(this).find('a').addClass('active');$('#youku').show();">
				<a class="topic-type <?php if($post['cate_id'] == 1): ?>active<?php endif; ?>">视频话题</a>
			</span>
		</div>
		<div class="col-md-6" style="padding: 0px 100px 0px 20px;">
			<span class="topic-tag " onclick="$('#category').val('2');$('.topic-type').removeClass('active');$(this).find('a').addClass('active');$('#youku').hide();">
				<a class="topic-type <?php if($post['cate_id'] == 2): ?>active<?php endif; ?>">图文话题</a>
			</span>
		</div>
		<div class="clearfix"></div>
		<div class="col-md-6 aw-main-content">
			<div class="aw-mod aw-mod-publish">
				<div class="mod-body">
					<?php if($post['cate_id'] == 1): ?><div id="youku" style="display: ;">
					<?php else: ?>
					<div id="youku" style="display: none;"><?php endif; ?>
					<h3 class="upload-youku">温馨提示：视频上传功能由优酷提供合作技术支持</h3>
					<div class="aw-mod upload-youku">
						<div style="margin-bottom: 10px;"><a href="#frm-post-popup" class="open-popup-link"><img src="/Theme/Want/Public/images/youku.png" /></a></div>
						<input id="url" name="video_url" type="text" class="form-control" value="<?php echo ($post["video_url"]); ?>" placeholder="输入以http://开头以.swf结尾的视频地址"/>
					</div>
					</div>
					<h3>上传封面：<span style="color:#ffaf86">支持jpg、png、gif等图片格式，请勿上传违法图片！</span></h3>
					<div class="aw-publish-title">
						<input type="file" id="upload_picture_cover">
                        <div class="upload-img-box" style="width:208px;margin-top: 10px;">
                            <?php if($isEdit): ?><div class="upload-pre-item"><img src="<?php echo ($post["cover"]); ?>"></div>
                            <?php else: ?>
                            <div style="background:url(/Theme/Want/Public/images/img50.png) #fff no-repeat center;height:118px;border-radius: 15px;"></div><?php endif; ?>
                        </div>
                        <input type="hidden" name="cover" id="cover_id_cover" value="<?php echo ($post["cover"]); ?>"/>
					</div>
					<h3>标题 (必填)：</h3>
					<div class="aw-publish-title">
						<div>
							<input id="title" type="text" name="title" placeholder="<?php echo L('_TITLE_');?>" value="<?php echo ($post["title"]); ?>" class="form-control"/>
						</div>
					</div>
					<h3>描述：</h3>
					<div class="aw-mod aw-editor-box">
						<div class="mod-head">
							<div class="wmd-panel">
								<textarea name="summary" class="form-control" id="inputDescription" placeholder="填写关于话题的简单介绍"><?php echo ($post["summary"]); ?></textarea>
							</div>
						</div>
					</div>
					<h3>发布到以下树丛：</h3>
					<div class="aw-topic-bar" data-type="publish">
						<input id="group" name="group" type="text" class="form-control" value="<?php echo (get_group_name($group["id"])); ?>" placeholder="选择下方加入的树丛" readonly="true"/>
						<input id="group_id" name="group_id" type="hidden" value="<?php echo ($group["id"]); ?>" />
					</div>

					<h3>我加入的树丛：</h3>
					<div class="aw-topic-bar">
						<div class="topic-bar clearfix">	
							<?php if(is_array($groups)): $i = 0; $__LIST__ = $groups;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><span class="topic-tag" onclick="$('#group').val('<?php echo ($vo["title"]); ?>');$('#group_id').val('<?php echo ($vo["id"]); ?>');$('.topic-bar').find('a').removeClass('active');$(this).find('a').addClass('active');">
								<a class="text <?php if($group['id'] == $vo['id']): ?>active<?php endif; ?>"><?php echo ($vo["title"]); ?></a>
							</span><?php endforeach; endif; else: echo "" ;endif; ?>
						</div>
					</div>
					<h3>分享志同道合的树友：</h3>
					<div class="aw-friend">
						<ul>
				
						</ul>
					</div>
				</div>
			</div>
		</div>
		<div class="col-md-6 aw-side-bar">
			<div class="friendlist">
				<h2>选择树友列表</h2>
				<div class="bd" style="height:500px">
					<ul>
						<?php if(is_array($friends)): $i = 0; $__LIST__ = $friends;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
							<div class="img">
							<a href="javascript:;"><img src="<?php echo ($vo["user"]["avatar64"]); ?>" alt="<?php echo ($vo["user"]["nickname"]); ?>" /></a>
							</div>
							<h3><a href="javascript:;"><?php echo ($vo["user"]["nickname"]); ?></a></h3>
							<em class="addbtn" onclick="addfriend($(this),$(this).parents('li').find('img').attr('src'),<?php echo ($vo["user"]["id"]); ?>)"></em>
						</li><?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
			</div>
			
			
		</div>
		<div class="clearfix"></div>
		<div class="col-md-12" style="padding:0 100px;">
			<?php $config="toolbars:[['insertimage','|','bold','italic','underline','fontsize','forecolor','fontfamily','backcolor','|','link','emotion','scrawl','attachment','insertcode','wordimage','|','source']]"; ?>
            </php>
            <?php echo W('Common/Ueditor/editor',array('contentEditor','content',$post['content'],'100%','250px',$config));?>
		</div>
		<div class="clearfix"></div>
		<div class="col-md-12 text-center" style="margin-top:30px;">
				<button id="submit-button" type="submit" class="btn btn-primary" style="width:300px;height:50px;background-color: #5ac994;border:none;" ><?php if($isEdit): ?>修改话题<?php else: ?>创建话题<?php endif; ?></button>
		</div>
		</form>
	</div>
</div>

<?php if(check_auth('addVideoContent')): ?><!-- Modal -->
    <div id="frm-post-popup" class="white-popup mfp-hide" style="border-radius: 5px;">
<style> 
	
	.ykupload{margin:0 auto;width:435px;}
	.containeryouku .pd30{padding-left:65px}
	.containeryouku .form-control{border-radius: 5px;}
	.uploadfile{width:150px;height: 14px;vertical-align: top;} 
</style>
<script type="text/javascript" src="/Theme/Want/Public/js/uploadyouku.js"></script>
<script>
	var USE_STREAM_UPLOAD = true;
	jQuery(document).ready(function(){ 
		var param = {client_id:"18532878da4e3089",access_token:"",oauth_opentype:"currentWindow",oauth_redirect_uri: + "{:U('video/index/index')}",oauth_state:"",completeCallback:"uploadComplete"};
		var reg = new RegExp("(^|\\#|&)access_token=([^&]*)(\\s|&|$)", "i");  
		if (reg.test(location.href)){
			var access_token = unescape(RegExp.$2.replace(/\+/g, " ")); 
			param.access_token = access_token;
		}
		youkuUploadInit(param);
	});
	function uploadComplete(data){
		//alert("videoid="+data.videoid+";title="+data.title);
		$('#url').attr("value","http://player.youku.com/player.php/sid/"+data.videoid+"/v.swf");
		//$("#upload-status-wraper").html("<h1>视频文件上传成功</h1><p>恭喜您，视频上传成功!<br />上传审核通过请留意侧边栏的站内信息<br />我们的工作人员将在第一时间给你回复，期间您如有问题可以咨询我们的客服人员，谢谢！</p>");
	}
				
	function categoryLoaded(data){
		if(data.categories) {
		var tpl = '';
			for (var i=0; i<data.categories.length; i++) {
				if(data.categories[i].term == 'Autos'){
					tpl += '<option value="' + data.categories[i].term + '" selected>' + data.categories[i].label + '</option>'; 
				}else{
					tpl += '<option value="' + data.categories[i].term + '" >' + data.categories[i].label + '</option>'; 
				}
			}
		$("#category-node").html(tpl);
		}
	}
</script>
<div id="youku-upload">
	<div class="containeryouku">
		<form class="well" name="video-upload">
				<div class="form-group">
					<label for="spanSWFUploadButton">选择文件：</label>
					<div id="uploadControl" >

					</div>
				</div>
				<div class="form-group">
					<label for="input01">视频标题：</label>
					<input type="text" class="form-control" id="input01" name="title">
				</div>
				<div class="form-group">
					<label for="textarea">视频简介：</label>
					<textarea class="form-control" id="textarea" rows="3" name="description"></textarea>
				</div>
				<div class="form-group">
					<label for="input02">视频标签：</label>
					<input type="text" class="form-control" id="input02" name="tags">
					<span class="help-inline"></span>
				</div>
				<div class="form-group">
					<label for="category-node">视频类别：</label>
					<select id="category-node" name="category" class="form-control"></select>
				</div>
				<div class="form-group">
					<label class="control-label">版权所有：</label>
						<label class="radio-inline">
							<input type="radio" name="copyright_type" id="copyright_type2" value="original" checked=""  style="margin-top:5px;margin-bottom: 0px;">原创
						</label>
						<label class="radio-inline">
							<input type="radio" name="copyright_type" id="copyright_type1" value="reproduced"  style="margin-top:4px;margin-bottom: 0px;">转载
						</label>

				</div>
				<div class="form-group">
					<label class="control-label">视频权限：</label>

						<label class="radio-inline" >
							<input type="radio" name="public_type" id="public_type1" value="all" checked="" style="margin-top:5px;margin-bottom: 0px;">公开
						</label>
						<label class="radio-inline">
							<input type="radio" name="public_type" id="public_type2" value="friend" style="margin-top:5px;margin-bottom: 0px;">仅好友
						</label>
						<label class="radio-inline">
							<input type="radio" name="public_type" id="public_type3" value="password" style="margin-top:5px;margin-bottom: 0px;">输入密码观看
						</label>
						<label class="radio-inline pd30" style="display:none" id="passwrod">
							<input type="text" class="input form-control" name="watch_password">
						</label>

				</div>
				<div class="form-actions">
					<button type="submit" class="btn btn-primary start" id="btn-upload-start" >
						<i class="icon-upload icon-white"></i>
						<span>开始上传</span>
					</button>
				</div>
		</form>
		<div class="row">
			<div class="span5 ykupload" id="upload-status-wraper"></div>
		</div>
		<br>
		<div class="well" id="shuoming">
			<h3 style="font-size: 15px;font-weight: bold;">说明</h3>
			<ul>
				<li>最大支持上传<strong>1 GB</strong> 视频文件</li>
				<li style="word-wrap: break-word;">允许上传的视频格式为：wmv,avi,dat,asf,rm,rmvb,ram,mpg,mpeg,3gp,mov,mp4,m4v,dvix,dv,dat,mkv,flv,vob,ram,qt,divx,cpk,fli,flc,mod。不符合格式的视频将会被丢弃，请确保视频格式的正确性，避免上传失败</li>
			</ul>
		</div>
	</div>
	<div id="complete"></div>
	<div id="login" style="width:100%;height:100%;position:fixed;z-index:999;left:0px;top:0px;overflow:hidden;display:none;"></div>
</div>

    </div><?php endif; ?>



        </div>
    </div>
</div>
	<!-- /主体 -->

	<!-- 底部 -->
	<div class="footer-bar ">
    <div class="container">
        <div class="row">
            <div class="col-xs-3">

                <h3>品牌介绍</h3>
                <ul class="friend-link">
                    <?php echo W('Paper/FootBlock/render',array('catid'=>'1'));?>
                </ul>
            </div>
            <div class="col-xs-3">
                <h3>玩转顽瞳网</h3>
                <ul class="friend-link">
                    <?php echo W('Paper/FootBlock/render',array('catid'=>'3'));?>
                </ul>
            </div>
            <div class="col-xs-3">
                <h3>友情链接</h3>
                <ul class="friend-link">
                    <?php echo Hook('friendLink');?>
                </ul>
            </div>
            <div class="col-xs-3">
                <h3>版权声明</h3>
                <ul class="friend-link">
                    <li><?php echo text(modC('ABOUT_US',L('_NOT_SET_NOW_'),'Config'));?></li>
                    <li style="font-size:12px"><?php echo text(modC('SUBSCRIB_US',L('_NOT_SET_NOW_'),'Config'));?></li>
                    <li style="font-size:12px"><?php echo text(modC('COPY_RIGHT',L('_NOT_SET_NOW_'),'Config'));?> 闽ICP备14009268号</li>
                    
                </ul>
            </div>
        </div>
        <div class="row text-center">
            <img src="/Theme/Want/Public/images/logo3.png"/>
            <?php echo ($count_code); ?>
        </div>
    </div>
</div>

<link type="text/css" rel="stylesheet" href="/Public/static/qtip/jquery.qtip.css"/>
<link type="text/css" rel="stylesheet" href="/Public/js/ext/atwho/atwho.css"/>
<script src="/Public/js.php?t=js&f=js/com/com.notify.class.js,static/qtip/jquery.qtip.js,js/ext/slimscroll/jquery.slimscroll.min.js,js/ext/magnific/jquery.magnific-popup.min.js,js/ext/jcarouse/jcarousellite.js,js/ext/placeholder/placeholder.js,js/ext/atwho/atwho.js,zui/js/zui.js&v=<?php echo ($site["sys_version"]); ?>.js"></script>
<script type="text/javascript" src="/Public/static/jquery.iframe-transport.js"></script>
<script src="/Public/js/ext/lazyload/lazyload.js"></script>
<script type="text/javascript">
	$(document).ready(function (){
		//二维码显示
		$(".ul2 li:first").hover(function(){
		    $(this).find('.showqr').show();
		},function(){
			$(this).find('.showqr').hide();  
		});
	});
</script>



        <script type="text/javascript" src="/Public/static/uploadify/jquery.uploadify.min.js"></script>
        <script>
            function addfriend(selector,img,uid){
				var fridennum=$(".aw-friend").find('li').length;
				if(fridennum<6){
					$('.aw-friend').find('ul').append(' <li id="'+uid+'"><img src="'+ img +'" /><input type=\'hidden\' value="'+ uid +'" name="friends[]"></li>');
					selector.parent('li').addClass('selected');
					selector.attr('onclick','cannelfriend($(this),'+uid+')');
				}else{
					alert('邀请人数超过指定数量！');
				}
			}
			function cannelfriend(selector,uid){
				$('.aw-friend').find('#'+uid+'').remove();
				selector.parent('li').removeClass('selected');
				selector.attr('onclick','addfriend($(this),$(this).parents(\'li\').find(\'img\').attr(\'src\'),'+uid+')');
			}
        </script>

        <script type="text/javascript">
            //上传图片
            /* 初始化上传插件 */
            $("#upload_picture_cover").uploadify({
                "height"          : 30,
                "swf"             : "/Public/static/uploadify/uploadify.swf",
                "fileObjName"     : "download",
                "buttonText"      : "上传封面",
                "buttonClass":"uploadcover",
                "uploader"        : "<?php echo U('Core/File/uploadPicture',array('session_id'=>session_id()));?>",
                "width"           : 100,
                'removeTimeout'	  : 1,
                'fileTypeExts'	  : '*.jpg; *.png; *.gif;',
                "onUploadSuccess" : uploadPicturecover,
                'overrideEvents':['onUploadProgress','onUploadComplete','onUploadStart','onSelect'],
                'onFallback' : function() {
                    alert('未检测到兼容版本的Flash.');
                }, 'onUploadProgress': function (file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) {
                    $("#cover_id_cover").parent().find('.upload-img-box').html(totalBytesUploaded + ' bytes uploaded of ' + totalBytesTotal + ' bytes.');
                },'onUploadComplete' : function(file) {
                    //alert('The file ' + file.name + ' finished processing.');
                },'onUploadStart' : function(file) {
                    //alert('Starting to upload ' + file.name);
                },'onQueueComplete' : function(queueData) {
                    // alert(queueData.uploadsSuccessful + ' files were successfully uploaded.');
                }
            });
            function uploadPicturecover(file, data){
                var data = $.parseJSON(data);
                var src = '';
                if(data.status){
                    
                    src = data.url ||  data.path
                    $("#cover_id_cover").val(src);
                    $('.upload-img-box').html(
                            '<div class="upload-pre-item"><img src="' + src + '"/></div>'
                    );
                } else {
                    toast.error('形象上传失败。','温馨提示');
                }
            }
        </script>


<!-- 页面footer钩子，一般用于加载插件JS文件和JS代码 -->
<?php echo hook('pageFooter', 'widget');?>
<div class="hidden"><!-- 用于加载统计代码等隐藏元素 -->
    
</div>

	<!-- /底部 -->
</body>
</html>